package cn.shujuhai.workflow.controller.flow;

import cn.shujuhai.workflow.service.flow.UserSyncService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: NiuYaHu
 * @Date: 2025/3/31 11:27
 * @Description:
 **/
@RestController
@RequiredArgsConstructor
@RequestMapping("/workflow/flowable")
public class UserSyncController {


    final UserSyncService userSyncService;

    @GetMapping("/sync-users")
    public String syncUsers() {
        this.userSyncService.syncUsers();
        return "User sync task executed";
    }
}
